<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%
	String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<sx:head/>
<link href="<%=path %>/css/buttons.css" rel="stylesheet" type="text/css"/>
<link href="<%=path %>/css/flexslider.css" rel="stylesheet" type="text/css"/>
<style>
<!--
*{font-size: 14px}
-->
</style>
</head>

<body>
<div class="flexslider" style="margin:5px 0 0 0">
	<li class="slides">
		<img src="<%=path %>/images/food/${foodInfo.pic}"/>
	</li> 
</div> 
<div class="flexslider" >
<leble>${foodInfo.name }</leble>
<p><leble>${foodInfo.foodType.name }</leble></p>

<s:if test="#session.foodInfo.foodClass==3">
<font style="font-size:20px;color: #6666CC">￥${foodInfo.favPrice }</font>
<font style="text-decoration:line-through; font-size:12px;color:#CCCCCC">￥${foodInfo.price }</font>
</s:if>
<s:else>
<font style="font-size:20px;color: #6666CC">￥${foodInfo.price }</font>
</s:else>
<s:form action="order!addFoodlist" namespace="/web" id="frm">
<input name="part" size="2" value="1" align="right" style="border: 1px solid black;"/>份
<sx:a formId="frm" cssClass="button blue" cssStyle="margin-left: 100px" targets="showInfo">加入菜单</sx:a>

</s:form>
<sx:div id="showInfo"></sx:div>
<p>
<leble>${foodInfo.description }</leble>
</p>
</div>

<input class="button green" type="button" value="返回列表" onclick="javascript:window.location='<%=path%>/index.jsp'"/>

</body>
</html>
